home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / PHP.EXE / pear / DB / tests / mysql / 002.phpt < prev    next >
Encoding:
Text File  |  2001-02-19  |  1.0 KB  |  39 lines

  1. --TEST--
  2. DB_mysql fetch test
  3. --SKIPIF--
  4. <?php include("skipif.inc"); ?>
  5. --FILE--
  6. <?php
  7. require_once "DB.php";
  8. include("mktable.inc");
  9. include("../fetchrow.inc");
  10. include("../fetchmodes.inc");
  11. ?>
  12. --EXPECT--
  13. testing fetchrow:
  14. row 1: 42, bing, This is a test, 1999-11-21
  15. row 2: 1, one, One, 2001-02-16
  16. row 3: 2, two, Two, 2001-02-15
  17. row 4: 3, three, Three, 2001-02-14
  18. row 5: NULL
  19. testing fetchmodes: fetchrow default default
  20. 0 1 2 3
  21. testing fetchmodes: fetchinto default default
  22. 0 1 2 3
  23. testing fetchmodes: fetchrow ordered default
  24. 0 1 2 3
  25. testing fetchmodes: fetchrow assoc default
  26. a b c d
  27. testing fetchmodes: fetchrow ordered default with assoc specified
  28. a b c d
  29. testing fetchmodes: fetchrow assoc default with ordered specified
  30. 0 1 2 3
  31. testing fetchmodes: fetchinto ordered default
  32. 0 1 2 3
  33. testing fetchmodes: fetchinto assoc default
  34. a b c d
  35. testing fetchmodes: fetchinto ordered default with assoc specified
  36. a b c d
  37. testing fetchmodes: fetchinto assoc default with ordered specified
  38. 0 1 2 3
  39.